package com.cskaoyan.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Aurhor: 11437
 * @DATE: 2022/10/7 20:03
 * @Description:
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReplyVo {
    int code;
    String message;
    Object data;

    public static ReplyVo ok(String message) {
        return new ReplyVo(10000, message, null);
    }

    public static ReplyVo eplyError(String msg) {
        return new ReplyVo(0, msg, null);
    }

}
